﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SoulHackerCUnite.Extensions
{
    public static class ListExtension
    {
        public static void CheckAdd<T>(this List<T> list,T toAdd)
        {
            foreach (T item in list)
            {
                if (item.Equals(toAdd))
                    return;
            }
            list.Add(toAdd);
        }
    }
}
